proc deauth {nick host handle arg} {
  global botnick home bcast

  puthelp "NOTICE $nick :\0033Your authentication has been successfully removed"
  puthelp "NOTICE $nick :You may authenticate yourself later by typing \00312(/msg) $botnick auth <password>"

  if {$bcast == "1"} {
    putquick "PRIVMSG $home :\0034\002$nick\002 who registered with the nick $handle and is connecting from $host has removed authentication from themself.\003"
  }

  chattr $handle -A
  save

  # Disconnect the newly deauth'd user from DCC
  set console [hand2idx $handle]
  if {$console != "-1"} {
    killdcc $console
  }

  if [string match global $arg] {
	putallbots "deauth $nick $host $handle /dev/null"
	putquick "NOTICE $nick :\00312Logging you off all bots on botnet. Please Wait.."
  }
}










